var items = "";
for(var i=0;i<items.length; i++) {
    document.getElementById("share_"+items[i].index).innerHTML = " "+items[i].count;
}